package com.taoge.p4.common.constants;

import lombok.Data;
import org.apache.commons.lang3.time.DateFormatUtils;

import java.util.Date;

@Data
public class UserInfo {
    private Long id;

    /**
     * 最小游客id
     */
    private static Long GUEST_MIN_ID = 2000000000000000L;

    /**
     * 是否是游客
     */
    public boolean isGuest() {
        return id > GUEST_MIN_ID;
    }

//    public static void main(String[] args) {
//        String format = DateFormatUtils.format(new Date(), "yyyyMMdd");
//        System.out.println(format);
//        Date date = new Date();
//        System.out.println(date.getTime());
//    }
}
